home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Source Code / C / Applications / MacPerl 5.0.3 / Preinstalled MacPerl (FAT) / lib / auto / POSIX / opendir.al < prev    next >
Encoding:
Text File  |  1995-08-04  |  262 b   |  13 lines  |  [once/pt: ]

  1. # NOTE: Derived from :::lib:POSIX.pm.  Changes made here will be lost.
  2. package POSIX;
  3.  
  4. sub opendir {
  5.     usage "opendir(directory)" if @_ != 1;
  6.     local($dirhandle) = &gensym;
  7.     opendir($dirhandle, $_[0])
  8.     ? $dirhandle
  9.     : (ungensym($dirhandle), undef);
  10. }
  11.  
  12. 1;
  13.